from django.contrib import admin

# Register your models here.
from app01.models import FoodList, MemberList, RecorderList, BillList


class FoodAdmin(admin.ModelAdmin):
    list_display = ["pro", "menu_name", "price"]
    ordering = ["price"]


class RecorderAdmin(admin.ModelAdmin):
    list_display = ["p_phone", "p_result", "p_off_total", "p_times"]
    ordering = ["p_times"]


class BillAdmin(admin.ModelAdmin):
    list_display = ["p_pro", "p_num", "p_sum", "p_recorder"]
    ordering = ["id"]


admin.site.register(FoodList, FoodAdmin)
admin.site.register(MemberList)
admin.site.register(RecorderList, RecorderAdmin)
admin.site.register(BillList, BillAdmin)
